home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 …ember: Reference Library / Apple Developer Reference Library (December 1999) (Disk 1).iso / pc / what's new / technical documentation / macintosh technotes and q&as / technotes / tn / tn1137.hqx / InterruptDisableLib1.0b2 / InterruptDisableLib.p < prev    next >
Encoding:
Text File  |  1998-03-28  |  986 b   |  36 lines

  1. unit InterruptDisableLib;
  2.  
  3. (*
  4.     File:        InterruptDisableLib.p
  5.  
  6.     Contains:    Routines for disabling interrupts on 68K and PPC.
  7.  
  8.     Written by:    Quinn "The Eskimo!"
  9.  
  10.     Copyright:    © 1998 by Apple Computer, Inc., all rights reserved.
  11.  
  12.     Change History (most recent first):
  13.  
  14.     You may incorporate this sample code into your applications without
  15.     restriction, though the sample code has been provided "AS IS" and the
  16.     responsibility for its operation is 100% yours.  However, what you are
  17.     not permitted to do is to redistribute the source as "DSC Sample Code"
  18.     after having made changes. If you're going to re-distribute the source,
  19.     we require that you make it clear in the source that the code was
  20.     descended from Apple Sample Code, but that you've made changes.
  21. *)
  22.  
  23. interface
  24.  
  25.     uses
  26.         Types;
  27.  
  28.     function GetInterruptMask : UInt16;
  29.         (* See comments in C header file. *)
  30.     
  31.     function SetInterruptMask(newMask : UInt16) : UInt16;
  32.         (* See comments in C header file. *)
  33.  
  34. end. (* InterruptDisableLib *)
  35.  
  36.